import { mineList } from "../../request/api"
const state = {
    mine: []
}
const mutations = {
    changeMine(state, res) {
        state.mine = res;
    }
}
const actions = {
    mineListActions(context, params) {
        mineList(params).then(res => {
            if (res.code === 200) {
                context.commit("changeMine", res.list[0])
            }
        })
    }
}
const getters = {
    mine(state) {
        return state.mine;
    }
}

export default {
    state,
    mutations,
    actions,
    getters,
    namespaced: true
}